package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 战队信息表
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
@ApiModel(value="Team对象", description="战队信息表")
public class Team extends Model<Team> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "战队名称")
    @TableField("team_name")
    private String teamName;

    @ApiModelProperty(value = "1.新增 2.修改 3删除 4当前最新数据")
    @TableField("flag" )
    private Integer flag;

    @ApiModelProperty(value = "建队时间")
    @TableField("building_time")
    private Long buildingTime;

    @ApiModelProperty(value = "所属地区")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "战队logo")
    @TableField("team_logo")
    private String teamLogo;

    @ApiModelProperty(value = "战队等级")
    @TableField("team_level")
    private Integer teamLevel;

    @ApiModelProperty(value = "是否参加城市排名")
    @TableField("city_ranking")
    private Integer cityRanking;

    @ApiModelProperty(value = "是否参加省份排名")
    @TableField("province_ranking")
    private Integer provinceRanking;

    @ApiModelProperty(value = "是否参加国家排名")
    @TableField("national_ranking")
    private Integer nationalRanking;


    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "审核状态")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "修改前id")
    @TableField("before_id")
    private Long beforeId;

    // 赛事名称
    @ApiModelProperty(value = "赛事名称")
    @TableField(exist = false)
    private String matchName;

    // 赛事日期
    @ApiModelProperty(value = "赛事日期")
    @TableField(exist = false)
    private Long matchTime;

    // 赛事名次
    @ApiModelProperty(value = "赛事名次")
    @TableField(exist = false)
    private Integer ranking;

    // 战队积分
    @ApiModelProperty(value = "战队积分")
    @TableField(exist = false)
    private Integer teamIntegral;

    // 赛事积分
    @ApiModelProperty(value = "赛事积分")
    @TableField(exist = false)
    private Integer integral;

    // 赛龄
    @ApiModelProperty(value = "赛龄")
    @TableField(exist = false)
    private String age ;

    //排名 rowNo
    @ApiModelProperty(value = "名次")
    @TableField(exist = false)
    private String rowNo ;

    @ApiModelProperty(value = "赛龄")
    @TableField(exist = false)
    private String year ;

    @ApiModelProperty(value = "赛龄")
    @TableField(exist = false)
    private String row ;
    @ApiModelProperty(value = "总和")
    @TableField(exist = false)
    private Integer c ;

    @ApiModelProperty(value = "次表id")
    @TableField(exist = false)
    private Long teamId ;


    public Long getBeforeId() {
        return beforeId;
    }

    public void setBeforeId(Long beforeId) {
        this.beforeId = beforeId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    public Integer getC() {
        return c;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public void setC(Integer c) {
        this.c = c;
    }

    public String getRow() {
        return row;
    }

    public void setRow(String row) {
        this.row = row;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getRowNo() {
        return rowNo;
    }

    public void setRowNo(String rowNo) {
        this.rowNo = rowNo;
    }

    public Integer getTeamIntegral() {
        return teamIntegral;
    }

    public void setTeamIntegral(Integer teamIntegral) {
        this.teamIntegral = teamIntegral;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }
    public Long getBuildingTime() {
        return buildingTime;
    }

    public void setBuildingTime(Long buildingTime) {
        this.buildingTime = buildingTime;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getTeamLogo() {
        return teamLogo;
    }

    public void setTeamLogo(String teamLogo) {
        this.teamLogo = teamLogo;
    }
    public Integer getTeamLevel() {
        return teamLevel;
    }

    public void setTeamLevel(Integer teamLevel) {
        this.teamLevel = teamLevel;
    }
    public Integer getCityRanking() {
        return cityRanking;
    }

    public void setCityRanking(Integer cityRanking) {
        this.cityRanking = cityRanking;
    }
    public Integer getProvinceRanking() {
        return provinceRanking;
    }

    public void setProvinceRanking(Integer provinceRanking) {
        this.provinceRanking = provinceRanking;
    }
    public Integer getNationalRanking() {
        return nationalRanking;
    }

    public void setNationalRanking(Integer nationalRanking) {

        this.nationalRanking = nationalRanking;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getRanking() {

        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public Long getMatchTime() {

        return matchTime;
    }

    public void setMatchTime(Long matchTime) {
        this.matchTime = matchTime;
    }

    public String getMatchName() {

        return matchName;
    }

    public void setMatchName(String matchName) {
        this.matchName = matchName;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Team{" +
                "id=" + id +
                ", teamName='" + teamName + '\'' +
                ", flag=" + flag +
                ", buildingTime=" + buildingTime +
                ", city='" + city + '\'' +
                ", teamLogo='" + teamLogo + '\'' +
                ", teamLevel=" + teamLevel +
                ", cityRanking=" + cityRanking +
                ", provinceRanking=" + provinceRanking +
                ", nationalRanking=" + nationalRanking +
                ", createTime=" + createTime +
                ", type=" + type +
                ", matchName='" + matchName + '\'' +
                ", matchTime=" + matchTime +
                ", ranking=" + ranking +
                ", teamIntegral=" + teamIntegral +
                ", integral=" + integral +
                ", age='" + age + '\'' +
                ", rowNo='" + rowNo + '\'' +
                ", year='" + year + '\'' +
                ", row='" + row + '\'' +
                ", c=" + c +
                ", teamId=" + teamId +
                '}';
    }
}
